package test20160604StaticInnerClass;

import org.junit.Test;

public class MyTest {
	
	@Test
	public void test() {
		
		//随机生成五个double的数组
		double[] arr = new double[5];
		
		for(int i=0;i<arr.length;i++) {
			arr[i] = 100*Math.random();
		}
		
		//打出数组
		System.out.println("原数组：");
		for(int i = 0 ;i<arr.length;i++) {
			System.out.println(arr[i]+"\t");
		}
		
		//得到最大值与最小值
		System.out.println(StaticInnerClass.getResult(arr).getMax());
		System.out.println("===========================");
		System.out.println(StaticInnerClass.getResult(arr).getMin());
		
	}
}
